home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / rpc.lha / dynload / loaderUtil.cxx < prev    next >
C/C++ Source or Header  |  1993-08-08  |  912b  |  43 lines

  1. // Copyright (C) 1990 by Glenn Gribble; all rights are reserved.
  2. // This program may be used for any purposes including inclusion in
  3. // for profit programs.  If the source is copied, the copyright notice
  4. // must be included.  Please send bug fixes/reports to glenn@synaptics.com
  5. // This program is distributed without any warranty.
  6.  
  7. // %W% %G%
  8. static char sccsid[] = "%W% %G%";
  9.  
  10. #include "loader.h"
  11.  
  12. #include <stdio.h>
  13. #include <stdarg.h>
  14.  
  15. void error(const char *fmt ...)
  16. {
  17.   va_list    ap;
  18.   va_start(ap, fmt);
  19.   fprintf(stderr,"Error:");
  20.   vfprintf(stderr, fmt, ap);
  21.   fprintf(stderr,"\n");
  22.   va_end(ap);
  23. }
  24.  
  25. void warn(const char *fmt ...)
  26. {
  27.   va_list    ap;
  28.   va_start(ap, fmt);
  29.   fprintf(stderr,"Warning:");
  30.   vfprintf(stderr, fmt, ap);
  31.   fprintf(stderr,"\n");
  32.   va_end(ap);
  33. }
  34.  
  35. void info(const char *fmt ...)
  36. {
  37.   va_list    ap;
  38.   va_start(ap, fmt);
  39.   vfprintf(stderr, fmt, ap);
  40.   fprintf(stderr,"\n");
  41.   va_end(ap);
  42. }
  43.